package com.ace.user.common.constant;

import com.ace.user.common.bean.ResponseDTO;

/**
 * 响应信息常量
 * @Author yudong
 * @Date 2018年07月03日 上午7:36
 */
public interface R {

    /**
     * **********************************通用响应信息常量******************************************
     */
    ResponseDTO OK = new ResponseDTO("SUCCESS",0);

    ResponseDTO COMM_ERR_PROTOCOL = new ResponseDTO("协议解析失败",1001);
    ResponseDTO COMM_ERR_INVALD_PARA = new ResponseDTO("协议无效的参数",1002);
    ResponseDTO COMM_ERR_NET_TIMEOUT = new ResponseDTO("网络超时",1003);
    ResponseDTO COMM_ERR_BUSINESS_TIMEOUT = new ResponseDTO("业务超时",1004);
    ResponseDTO COMM_ERR_NET_CONNECT = new ResponseDTO("网络连接断开",1005);
    ResponseDTO COMM_ERR_INVALD_TOKEN = new ResponseDTO("校验token失败",1010);
    ResponseDTO COMM_ERR_CREATE_TOKEN = new ResponseDTO("建立token失败",1011);
    ResponseDTO COMM_ERR_UPDATE_TOKEN = new ResponseDTO("更新token失败",1012);
    ResponseDTO COMM_ERR_DELETE_TOKEN = new ResponseDTO("删除token失败",1013);

    /**
     * **********************************token响应信息常量******************************************
     */
    ResponseDTO AUTH_ERR_ADD_ROLE = new ResponseDTO("增加角色失败",3001);
    ResponseDTO AUTH_ERR_UPDATE_ROLE = new ResponseDTO("修改角色信息失败",3002);
    ResponseDTO AUTH_ERR_DELETE_ROLE = new ResponseDTO("删除角色失败",3003);
    ResponseDTO AUTH_ERR_QUERY_ROLE = new ResponseDTO("查询角色信息失败",3004);
    ResponseDTO AUTH_ERR_ADD_USERROLE = new ResponseDTO("增加用户和角色关联失败",3005);
    ResponseDTO AUTH_ERR_DELETE_USERROLE = new ResponseDTO("删除用户和角色关联失败",3006);
    ResponseDTO AUTH_ERR_QUERY_USERROLE = new ResponseDTO("增加用户组和角色关联失败",3007);
    ResponseDTO AUTH_ERR_ADD_GROUPROLE = new ResponseDTO("增加角色失败",3008);
    ResponseDTO AUTH_ERR_DELETE_GROUPROLE = new ResponseDTO("删除用户组和角色关联失败",3009);
    ResponseDTO AUTH_ERR_QUERY_GROUPROLE = new ResponseDTO("查询用户组与角色关联失败",3010);
    ResponseDTO AUTH_ERR_QUERY_AUTH = new ResponseDTO("查询权限失败",3011);
    ResponseDTO AUTH_ERR_ADD_ROLEAUTH = new ResponseDTO("增加角色和权限关联失败",3012);
    ResponseDTO AUTH_ERR_DELETE_ROLEAUTH = new ResponseDTO("删除角色和权限关联失败",3013);
    ResponseDTO AUTH_ERR_QUERY_ROLEAUTH = new ResponseDTO("查询角色和权限关联失败",3014);
    ResponseDTO TOKEN_ERR_QUERY_USER = new ResponseDTO("查询用户id失败",3015);

}
